<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"></c:url>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/list.css"></c:url>">
    
    <script type="text/javascript">
    
       function forUpdateClient(clientNo){
          location.href='<c:url value="/clientMgr?act=updateClient"/>&clientno='+clientNo;      
       }
    
    </script>
  </head>
  
  <body>
    <div id="wrapper">
	     <div id="title">查询结果</div>
	     <div>
	        <table id="listtable" cellpadding="0" cellspacing="0">
	          <tr>
	            <th>姓名</th>
	            <th>性别</th>
	            <th>身份证</th>
	            <th>电话</th>
	            <th>email</th>
	          	<th>地址</th>
	            <th>爱好</th>
	            <th>注册时间</th>
	            <th>可用资金</th>
	            <th>总资产</th>
	            <th>操作</th>                                                            
	          </tr>
	          <c:forEach var="client" items="${clientList}">
		          <tr>
		          	<td>${client.client_name}</td>
		            <td>	           
	                  <c:choose>
	                     <c:when test="${client.client_sex=='true'}">男</c:when>
	                     <c:when test="${client.client_sex=='false'}">女</c:when>
	                     <c:otherwise>---</c:otherwise>
	                  </c:choose>		            
		            </td>
		            <td>${client.idcard_no}</td>
		            <td>${client.client_phone}</td>
		            <td>${client.client_email}</td> 
		            <td>${client.client_address}</td>
		            <td>${client.client_hobby}</td>
		            <td>${client.create_date}</td>
		            <td>${client.idcard_no}</td>
		            <td>${client.idcard_no}</td> 
		            <td>
		               <button  onclick="forUpdateClient(${client.client_no});"> 修 改 </button>
		            </td>                                                            
		          </tr>         
	          </c:forEach>
	        </table>
	     </div>
     </div>
     <c:if test="${not empty err}">
     <script type="text/javascript">
    //   alert('${err}');
     </script>
     </c:if>
  </body>
</html>
